<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>《C语言程序设计》在线考试系统- 权限列表 </title>
<meta name="Copyright" content="Douco Design." />
<link href="{$smarty.const.Admin_URL}css/public.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="{$smarty.const.Admin_URL}js/jquery.min.js"></script>
<script type="text/javascript" src="{$smarty.const.Admin_URL}js/global.js"></script>
</head>
{include file="../Index/top.html"}
 <div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">题库首页<b>></b><strong>权限列表</strong> </div>   <div id="manager" class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
    <h3><a href="addauth.html?rec=add" class="actionBtn add">添加权限</a>权限列表</h3>
        <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
     <tr>
      <th width="30" align="center">编号</th>
      <th align="left">权限名称</th>
      <th align="center">上级编号</th>
      <th align="center">控制器</th>
      <th align="center">操作方法</th>
      <th align="center">全路径</th>
      <th align="center">是否首页</th>
      <th align="center">级别</th>
      <th align="center">操作</th>
     </tr>
          {foreach $auth as $a}
          <tr>
      <td align="center">{$a.auth_id}</td>
      {if $a.auth_level==1}
      <td align="left">　{$a.auth_name}</td>
      {else}
      <td align="left">{$a.auth_name}</td> 
      {/if}
      <td align="center">{$a.auth_pid}</td>
      <td align="center">{$a.auth_c}</td>
      <td align="center">{$a.auth_a}</td>
      <td align="center">{$a.auth_path}</td>
      <td align="center">{$a.is_index}</td>
      <td align="center">{$a.auth_level}</td>
      <td align="center"><a href="addauth.html?rec=edit&auth_id={$a.auth_id}">编辑</a> | 
      <a href="{$smarty.const.__CONTROLLER__}/delete/auth_id/{$a.auth_id}">删除</a></td>
     </tr>
     {/foreach}
         </table>
                       </div>
 </div>
 <div class="clear"></div>
<div id="dcFooter">
 <div id="footer">
  <div class="line"></div>
  <ul>
   《C语言程序设计》在线考试系统，版权所有
  </ul>
 </div>
</div><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
</body>
</html>